
num = 100

def  test_a():
    global num
    num = 400
    print(f"打印num的值:{num}")

def  test_b():
    global num
    num = 200
    print(f"打印num的值:{num}")
test_a()
test_b()
print(f"最终的num的值是{num}")